	    <?php
		$page = '';
		$page = empty($_GET['page']) ? 'home' : $_GET['page'];
		$pageArr = explode('/', $page);
		if($pageArr[0] != 'accounting' && $pageArr[0] != 'technic'
				&& $pageArr[0] != 'user' && $pageArr[0] != 'contact'
				&& $page != 'log' && $page != 'clearlog' && $page != 'message'){
		?>
	    
		<style type="text/css">
		.footer {
			margin: 40px auto;
			display: block;
			width: 840px;
		}
		.fb-like-box {
			width: 520px;
			float: left;
		}
		.contact-box {
			width: 320px;
			float: left;
		}
		
		.contact-list li {
			margin-bottom: 15px;
		}
		
		.contact {
			margin-right: 10px;
		}
		</style>
		<hr style="margin-top: 40px;" />
		<div class="footer">
			<div class="fb-like-box" data-href="http://www.facebook.com/pla2dc" data-width="460" data-height="210" data-show-faces="false" data-stream="true" data-header="false"
			style="min-width: 460px; min-height: 10px;"></div>
			<div class="contact-box">
				<p>ติดต่อสอบถาม</p>
				<ul class="unstyled contact-list">
					<li><img class="contact" src="images/Phone-Icon.jpg" width="32" height="32" style="width: 32px; height: 32px;" /> Phone : 087-787-6960</li>
					<li><img class="contact" src="images/Facebook.jpg" width="32" height="32" style="width: 32px; height: 32px;" /> Facebook : <a href="http://facebook.com/pla2dc">http://facebook.com/pla2dc</a></li>
					<li><img class="contact" src="images/email-icon.jpg" width="32" height="32" style="width: 32px; height: 32px;" /> Email : p2dc@gmail.com</li>
					<li><img class="contact" src="images/skype-icon.png" width="32" height="32" style="width: 32px; height: 32px;" /> Skype ID : pla2dc</li>
				</ul>
			</div>
			<div class="clear"></div>
		</div>
		<div id="fb-root"></div>
		
		<script type="text/javascript">
		    $(window).load(function(){
		        var iPad = navigator.userAgent.match(/iPad/i) != null;
		        if (iPad) {
		            //$(".fb-like-box").remove();
		        } else {
					
		    	}
		        (function(d, s, id) {
	        	    var js, fjs = d.getElementsByTagName(s)[0];
	        	    if (d.getElementById(id)) return;
	        	    js = d.createElement(s); js.id = id;
	        	    js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=413892292015301";
	        	    fjs.parentNode.insertBefore(js, fjs);
	        	}(document, 'script', 'facebook-jssdk'));
		    });
		</script>
	    <div style="margin-top: 60px;text-align: center;">
	        Powered By Pla2 Fusion Co., Ltd.
	    </div>
	    <?php }?>
    </div>
</div>
<style type="text/css">
.button-up-page {
    position: fixed;
    right: 10px;
    bottom: 10px;
    cursor: pointer;
}
</style>
<i class="icon-chevron-up fade button-up-page"></i>
<script type="text/javascript">
$(function(){
    var button = $('.button-up-page');
    $(window).scroll(function(event){
        if($(window).scrollTop()>100){
            button.addClass('in');
        }
        else {
            button.removeClass('in');
        }
    });
    button.click(function(event){
        event.preventDefault();
        $("html, body").animate({ scrollTop: 0 }, 'slow');
    });
});
</script>
<script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-37675183-1']);
    _gaq.push(['_trackPageview']);

    (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();
</script>
</body>
</html>